<template>
  <div id="app">
    <router-view/>
  </div>
</template>
<script>
export default {
  watch:{
    '$route.name':function(val){
      document.getElementById('app').scrollTo(0,0)
    }
  },
}
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #333;
  height: 100%;
  width: 100%;
  overflow: auto;
  // &::-webkit-scrollbar {
  //   width: 10px;
  //   background-color: rgba(36, 71, 143, 0.1);
  // }
  // &::-webkit-scrollbar-thumb {
  //   border-radius: 10px;
  //   background-color: rgba(50,50,50,0.25);
  //   border: 2px solid transparent;
  //   background-clip: padding-box;
  // }
}
html,body{
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  -moz-user-select: none; /*火狐*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10*/
  -khtml-user-select: none; /*早期浏览器*/
  user-select: none;
}
.btn{
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  position: relative;
  &:hover{
    &::before{
      position: absolute;
      z-index: 1;
      content: ' ';
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.1);
    }
  }
}
.el-popper{
  z-index: 1999 !important;
}
.flex{
  display: flex;
}
.flex_a{
  display: flex;
  align-items: center;
}
.flex_sb{
  display: flex;
  justify-content: space-between;
}
.flex_sa{
  display: flex;
  justify-content: space-around;
}
.flex_center{
  display: flex;
  justify-content: center;
}
.flex_w{
  flex-wrap: wrap;
}
.cur{
  cursor: pointer;
}
.list{
  overflow-y: auto;
 &::-webkit-scrollbar {
    width: 10px;
    background-color: rgba(36, 71, 143, 0.1);
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgba(50,50,50,0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
  }
}
.list_x{
  overflow-x: auto;
  white-space: nowrap;
  &::-webkit-scrollbar {
    height: 8px;
    background-color: rgba(36, 71, 143, 0.12);
  }
  &::-webkit-scrollbar-thumb {
    background-color: rgb(177, 177, 177)
  }
}
.line_text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.none_sj{
  width: 100%;
  height: 100%;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
}
.w5{width: 5%;}
.w10{width: 10%;}
.w15{width: 15%;}
.w20{width: 20%;}
.w25{width: 25%;}
.w30{width: 30%;}
.w35{width: 35%;}
.w40{width: 40%;}
.w45{width: 45%;}
.w50{width: 50%;}
.w55{width: 55%;}
.w60{width: 60%;}
.w65{width: 65%;}
.w70{width: 70%;}
.w75{width: 75%;}
.w80{width: 80%;}
.w85{width: 85%;}
.w90{width: 90%;}
.w95{width: 95%;}
.js_div{
  width: 100%;
  margin: 0 auto;
  // display: flex;
  // justify-content: space-around;
  // align-items: center;
  .div_text{
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    h2{
      color: #0a1633;
      font-size: 22px;
      margin-bottom: 10px;
      font-weight: 700;
      margin: 0 0 10px;
      text-align: center;
    }
    p{
      width: 100%;
      font-size: 14px;
      color: #909090;
      line-height: 26px;
      margin-bottom: 0;
      text-align: left;
    }
    img{
      margin-right: 20px;
      width: 37px;
      height: 31px;
      vertical-align: middle;
    }
  }
  .p0{
    width: calc(100% - 40px);
    margin: 10px 20px 30px;
    position: relative;
    z-index: 1;
  }
  .p1{
    width: calc(100% - 100px);
    margin: 10px 50px 30px;
    position: relative;
    z-index: 1;
  }
}
.js_div1{
  position: relative;
  &::after{
    content: ' ';  
    position: absolute;
    width: 200%;
    height: 100%;
    left: -50%;
    top: 0;
    background: #d8e5ff2f;
    z-index: 0;
  }  
}
</style>
